home *** CD-ROM | disk | FTP | other *** search
/ PC Advisor 2007 June / PC Advisor 2007 June.iso / FULL / OPENOFFICE / openoffice.exe / openofficeorg4.cab / badsyntax_future6.py < prev    next >
Text File  |  2006-11-03  |  158b  |  11 lines

  1. """This is a test"""
  2. "this isn't a doc string"
  3. from __future__ import nested_scopes
  4.  
  5. def f(x):
  6.     def g(y):
  7.         return x + y
  8.     return g
  9.  
  10. print f(2)(4)
  11.